//
//  LZLRecommendCollectionViewCell.swift
//  swiftDemo
//
//  Created by luozhilin on 2018/9/18.
//  Copyright © 2018年 luozhilin. All rights reserved.
//

import UIKit

class LZLRecommendCollectionViewCell: UICollectionViewCell {
    private lazy var  imageView:UIImageView = {
        let imageView = UIImageView()
        return imageView
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.contentView.addSubview(imageView)
        self.imageView.layer.masksToBounds = true
        self.imageView.layer.cornerRadius = 5
        self.imageView.snp.makeConstraints { (make) in
            make.left.top.bottom.right.equalToSuperview()
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    var picModel:FindRPicUrls? {
        
        didSet{
            guard let model = picModel else {
                return
            }
            self.imageView.kf.setImage(with: URL(string: model.originUrl!))
        }
    }
}
